package com.zs4sdk.activity.login;

import android.app.Activity;
import android.view.View;

import com.common.library.util.ActivityHelper;
import com.zs4gamesdk.R;

/**
 * Created by Administrator on 2018/4/24.
 */

public class Zs4GameLoginProxyBase {
    protected View mMainView;
    protected Activity mActivity;
    protected Zs4GameLoginBase mZs4GameOtherAccountLogin;
    protected Zs4GameLoginBase mZs4GameLoginInputPhone;
    protected final static int TOURIST_LOGIN = 100;
    protected final static int INPUT_PHONE = 101;
    protected final static int PHONE_LOGIN = 102;
    protected final static int OTHER_ACCOUNT = 103;
    protected int loginStyle = TOURIST_LOGIN;
    public Zs4GameLoginProxyBase(Activity act,View v) {
        mActivity = act;
        mMainView = v;
    }
    public void onDestroy(){

    }
    public void onBackPressed(){

    }
    protected void gotoPhoneLogin(int style){
        if(style == Zs4GameLoginInputPhone.REGIST_NO_PASSWORD){
        }else if(style == Zs4GameLoginInputPhone.REGIST_SET_PASSOWRD){
        }else if(style == Zs4GameLoginInputPhone.NO_REGIST){
        //    ActivityHelper.showLongToast(mActivity,mActivity.getString(R.string.zs4game_phone_no_regist));
         //   return;
        }else{
            ActivityHelper.showLongToast(mActivity,mActivity.getString(R.string.zs4game_input_right_phone));
            return;
        }
        mZs4GameOtherAccountLogin.setLoginStyle(style);
        mZs4GameLoginInputPhone.hideLogin();
        mZs4GameOtherAccountLogin.showLogin();
        String phoneNumber = (String)mZs4GameLoginInputPhone.getData();
        mZs4GameOtherAccountLogin.setData(phoneNumber);
        loginStyle = PHONE_LOGIN;
    }
}
